package cn.getech.data.development.mapper;


import cn.getech.data.development.entity.JobNodeConf;
import cn.getech.data.development.entity.TableInfo;
import cn.getech.data.development.model.res.jobInfo.JobDataRes;
import cn.getech.data.development.model.vo.JobDataVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;


/**
 * <p>
 * 任务信息配置表 Mapper 接口
 * </p>
 *
 * @author zenith
 * @since 2018-08-27
 */
@Mapper
public interface JobNodeConfMapper extends BaseMapper<JobNodeConf> {
	void upsertKVByJobNodeId(List<JobNodeConf> jobNodeConfList);
	JobNodeConf selectKVByJobNodeIdAndKey(@Param("id") Integer id, @Param("key") String key,@Param("jobType") Integer jobType);

    List<TableInfo> selectByDbNameAndTableName();

	List<JobNodeConf> selectByWorkMenuIds(@Param("workMenuIds") Set<Long> workMenuIds);

    List<JobNodeConf> selectByJobNodeIds(@Param("jobNodeIds") Set<Integer> jobNodeIds);

    List<JobDataRes> getJobDataPage(Page<JobDataRes> jobDataResPage, @Param("jobDataVo") JobDataVo jobDataVo);

    List<Map<String, Object>> getJobDataCreateBy(@Param("jobDataVo")JobDataVo jobDataVo);
}
